using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestSpawnPoint : MonoBehaviour
{
    public SpawnPoint spawnPoint;
    public BoxCollider boxCollider;
    public GameObject player;
    // public SpawnPoint spawnPoint;
    public void Start()
    {
        spawnPoint = GetComponent<SpawnPoint>();
        spawnPoint.Build();
        boxCollider = GetComponent<BoxCollider>();
        // boxCollider.isTrigger = true;
    }

    private void OnTriggerEnter(Collider other)
    {
        // spawnPoint.OnPlayerScore();
        // Debug.Log("OnTriggerEnter");
        // if (other.gameObject.CompareTag("Player"))
        // {
        //     Debug.Log("OnTriggerEnter Player");
        //     other.GetComponent<SpawnPoint>().OnPlayerScore();
        //     Debug.Log("OnPlayerScore");
        // }
    }
}
